package cn.edu.nju.askme.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import cn.edu.nju.askme.dao.IOptionDAO;
import cn.edu.nju.askme.model.Option;
import cn.edu.nju.askme.service.IOptionService;

@Component
public class OptionService implements IOptionService {
	private IOptionDAO optionDAO;

	public IOptionDAO getOptionDAO() {
		return optionDAO;
	}

	@Resource
	public void setOptionDAO(IOptionDAO optionDAO) {
		this.optionDAO = optionDAO;
	}

	public void add(Option option) {
		optionDAO.save(option);
	}

}
